@echo off
chcp 65001
echo [INFO] 检查编译环境...
echo.

set WXWIN=D:\vc\wxWidgets-3.2.7

echo 1. 检查 wxWidgets 目录:
if exist "%WXWIN%" (
    echo    [OK] wxWidgets 目录存在: %WXWIN%
    dir "%WXWIN%\include\wx\*.h" | find "个文件" >nul
    if %errorlevel% equ 0 (
        echo    [OK] wxWidgets 头文件存在
    ) else (
        echo    [ERROR] wxWidgets 头文件不存在!
    )
) else (
    echo    [ERROR] wxWidgets 目录不存在!
)

echo.
echo 2. 检查编译器:
where cmake >nul
if %errorlevel% equ 0 (
    echo    [OK] CMake 已安装
    cmake --version
) else (
    echo    [ERROR] CMake 未找到!
)

where g++ >nul
if %errorlevel% equ 0 (
    echo    [OK] g++ 编译器已安装
    g++ --version | find "g++"
) else (
    echo    [WARNING] g++ 编译器未找到
)

echo.
echo 3. 检查构建目录:
if exist build (
    echo    [INFO] build 目录存在
) else (
    echo    [INFO] build 目录不存在，将自动创建
)

echo.
echo [INFO] 环境检查完成!
pause
